package org.ghost.spring.cloud.hystrix.demo.dao;

import org.ghost.spring.cloud.hystrix.config.GhostFeignConfig;
import org.ghost.spring.cloud.hystrix.demo.dto.RspDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Administrator
 * @date 2020-09-02 10:11
 */
@FeignClient(value = "PROVIDER", configuration = GhostFeignConfig.class)
public interface IHelloDAO {
    @RequestMapping(value = "/hello/{id}", method = RequestMethod.GET)
    RspDTO get(@PathVariable(value = "id") String id);
}
